home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Mail
/
MailEnclosure
/
Source.v0.15
/
Defaults.h
< prev
next >
Wrap
Text File
|
1995-06-12
|
1KB
|
60 lines
/*
** Defaults.h,v 1.3 1992/09/24 03:34:29 nwc Exp
**
** Copyright (c) 1991 Ronin Consulting, Inc.
**
** This object is designed to simplyfy the use of the NeXT defaults facilities.
**
*/
#import <objc/Object.h>
#import <defaults/defaults.h>
@interface Defaults : Object
{
const char *appName;
BOOL registered;
}
/*
** This is a shared object so allocate it with new.
*/
+ new;
/*
** Register a defaults vector. If no vector is registered before a get/set (or any other) call is
** used then an empty vector is used.
*/
- regDefaults: (NXDefaultsVector) defaultsVector;
/*
** Get/Set a default.
*/
- (const char *) get: (const char *) aDefault;
- set: (const char *) aDefault to: (const char *)aValue;
/*
** Get/Set that Ignore the cached values and use the actual database.
*/
- (const char *) readDB: (const char *) aDefault;
- writeDB: (const char *) aValue as: (const char *)aValue;
/*
** Remove a default from the database.
*/
- remove: (const char *) aDefault;
/*
** Update the cached default from the file.
*/
- update: (const char *) aDefault;
/*
** Update ALL cached values from the database.
*/
- update;
@end